using System.Collections;
using System.Collections.Generic;
using UnityEngine;
/// <summary>
/// 游戏对象基类
/// </summary>
public class OBJBase : IObjectGetHurt, IObjectDead, IResource//, IObjectAttack
{
    string objName;
    E_Objects_Type objType;//类型
    public string ObjName { get => objName; set => objName = value; }//名字
    internal E_Objects_Type ObjType { get => objType; set => objType = value; }

    /// <summary>
    /// 从AB包中加载需要的资源    暂定使用Resource
    /// </summary>
    public virtual GameObject ResourceObject(string url)
    {
        return Resources.Load(url) as GameObject; //拆箱操作！需考虑优化。
    }
}
/// <summary>
/// player(玩家),HostileNpc(敌对Npc)，FriendlyNpc(友善Npc)，ConsumeProp(消耗道具)
/// </summary>
enum E_Objects_Type
{
    Player = 0,
    HostileNpc = 1,
    FriendlyNpc = 2,
    ConsumeProp = 3
}


